<?php
App::uses('AppModel', 'Model');
/**
 * Mascota Model
 *
 * @property Kardex $Kardex
 * @property Raza $Raza
 * @property Propietario $Propietario
 * @property Reproductora $Reproductora
 * @property Titulo $Titulo
 */
class Mascota extends AppModel {


	//The Associations below have been created with all possible keys, those that are not needed can be removed


/**
 * belongsTo associations
 *
 * @var array
 */
	public $belongsTo = array(
        
		'Raza' => array(
			'className' => 'Raza',
			'foreignKey' => 'raza_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Propietarioreproductora' => array(
			'className' => 'Propietario',
			'foreignKey' => 'propietarioreproductora_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
        'Propietarioreproductor' => array(
			'className' => 'Propietario',
			'foreignKey' => 'propietarioreproductor_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
		'Reproductora' => array(
			'className' => 'Mascota',
			'foreignKey' => 'reproductora_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
        'Reproductor' => array(
			'className' => 'Mascota',
			'foreignKey' => 'reproductor_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
        'Kardex' => array(
			'className' => 'Kardex',
			'foreignKey' => 'kardex_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		), 
        'Camada' => array(
            'className'=> 'Camada',
            'foreignKey' => 'camada_id'
        ), 
        'Criadero' => array(
			'className' => 'Criadero',
			'foreignKey' => 'criadero_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		),
	);
public $hasMany = array(
  'Duenosmascota'=>array(
  'className'=>'Duenosmascota', 
  'foreingKey'=>'mascota_id'
  )
);
/**
 * hasAndBelongsToMany associations
 *
 * @var array
 */
	public $hasAndBelongsToMany = array(
		'Titulo' => array(
			'className' => 'Titulo',
			'joinTable' => 'mascotas_titulos',
			'foreignKey' => 'mascota_id',
			'associationForeignKey' => 'titulo_id',
			'unique' => 'keepExisting',
			'conditions' => '',
			'fields' => '',
			'order' => '',
			'limit' => '',
			'offset' => '',
			'finderQuery' => '',
			'deleteQuery' => '',
			'insertQuery' => ''
		)
	);

}
